﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Generic;
using Runda.CMS.Common.Utility;
using Runda.CMS.Common.Entity;
using Runda.CMS.Bll;

namespace Runda.CMS.Portal.WorkFlow
{
    public partial class WFDefined_Add : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {
                if (Request.QueryString["ModelID"] != null && Request.QueryString["ModelID"].ToString() != "") {
                    modelID.Value = Request.QueryString["ModelID"].ToString();

                    WflModelEntity modelEntity = new WflModelBll().Get<WflModelEntity>(new Guid(modelID.Value));
                    if (modelEntity != null) {
                        processName.Text = modelEntity.ModelName;
                        ProcessBusinessType.Text = modelEntity.ModelName;
                        ModelDescription.Text = modelEntity.ModelDescription;                        
                    }
                }
            }
        }
    }
}
